TsgBaseList
Unit:sgLists
Description
TsgBaseList
is a base class for classes that represents lists or collection of items.
Syntax
type TsgBaseList = class(TsgInterfacedObject, IsgCollectionBase, IsgCollectionBaseSort)
Properties
Properties | Description |
---|---|
Capacity | The property specifies the allocated size of the array of pointers maintained by the TsgBaseList object. |
Count | The property indicates the number of entries in the list that are in use. |
Dublicates | The property specifies how to handle items with same values. |
ListType | The property specifies the type of elements maintained by the list. |
ProcCompare | The property specifies the procedure used to compare items in the list. |
Sorted | The property indicates whether the items are sorted or not. |
Methods
Methods | Description |
---|---|
AppendDynArray | The method appends a dynamic array to the list. |
Assign | The method copies elements of another list to this one. |
Clear | The method deletes all items from the list. |
CopyFrom | The method copies data from a specified list to this list. |
CopyTo | The method copies data from this list to a specified list. |
Create | The method creates a new list and initializes its data. |
Delete | The method removes the item(s) at a specific position from the list. |
Destroy | The method destroys an instance of TsgBaseList. |
FillChar | The method is for internal use. |
Flip | The method performs mirrored rearrangement of the items. |
High | The method returns the index of last item in the list. |
IsEqual | The method checks whether this list and a specified list are equal. |
IsItemsUnique | The method checks whether the Items array contains unique data set. |
Sort | The method performs a sort on the list. |
SwapItems | The method swaps two items in the list. |